package cn.lx;

import cn.lx.po.PayOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName IOrderDao
 * @Description: 订单服务dao
 * @Author: 落雪
 * @CreateDate: 2025/3/17 08:25
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/3/17 08:25
 * @UpdateRemark:
 * @Version: 1.0
 */
@Mapper
public interface OrderDao {


    void insert(PayOrder payOrder);

    PayOrder queryUnPayOrder(PayOrder payOrder);

    void updateOrderPayInfo(PayOrder payOrder);


    /**
    * @Author: 落雪
    * @Date: 2025/3/18 06:57
    * @Description: 修改订单为支付成功状态
    * @param order
    * @Return:
    * @Version: 1.0.0
    */
    void changeOrderPaySuccess(PayOrder order);

    /**
    * @Author: 落雪
    * @Date: 2025/3/18 06:58
    * @Description: 查询未支付订单
    * @param
    * @Return: java.util.List<java.lang.String>
    * @Version: 1.0.0
    */
    List<String> queryNoPayNotifyOrder();
    /**
    * @Author: 落雪
    * @Date: 2025/3/18 06:58
    * @Description: 查询未支付订单
    * @param
    * @Return: java.util.List<java.lang.String>
    * @Version: 1.0.0
    */
    List<String> queryTimeoutCloseOrderList();
    /**
    * @Author: 落雪
    * @Date: 2025/3/18 06:58
    * @Description: 关闭订单
    * @param orderId
    * @Return: boolean
    * @Version: 1.0.0
    */
    boolean changeOrderClose(String orderId);
}
